import request from './http';

const BASE_URL = window.ENV?.TASK_API || '';


export default {
    userList(obj) {
        return request.requestPost(BASE_URL + '/user/list', obj)
    },
    updateUser(obj) {
        return request.requestPost(BASE_URL + '/user/update', obj)
    },
    roleSelectList(){
        return request.requestPost(BASE_URL + '/role/list_select')
    },
    roleList(obj) {
        return request.requestPost(BASE_URL + '/role/list', obj)
    },
    addRoleInfo(obj){
        return request.requestPost(BASE_URL + '/role/add', obj)
    },
    logList(obj) {
        return request.requestPost(BASE_URL + '/log/list', obj)
    },
    deleteAllLog(obj){
        return request.requestPost(BASE_URL + '/log/delete', obj)
    }
}